<?php
include "phpqrcode.php";
$code=$_GET['code'];
$errorCorrectionLevel = '2';//容错级别  
$matrixPointSize = 6;//生成图片大小
//生成二维码图片  
QRcode::png($code, false, $errorCorrectionLevel, $matrixPointSize, 1);
//QRcode::png($code, 'qrcode.png', $errorCorrectionLevel, $matrixPointSize, 2);